package com.sanpu.kxe.module.luban;

import java.io.File;

/**
 * Description：压缩回调
 * Created by 薛勇军 on 2018/7/11.
 */

public interface OnCompressListener {

  /**
   * Fired when the compression is started, override to handle in your own code
   */
  void onStart();

  /**
   * Fired when a compression returns successfully, override to handle in your own code
   */
  void onSuccess(File file);

  /**
   * Fired when a compression fails to complete, override to handle in your own code
   */
  void onError(Throwable e);
}
